import { createApp } from 'vue';
import App from './App.vue';
import router from './router/index';
import { setupStore } from './store';
import './styles/index.less';

// import router 后创建并挂载根实例。
const app = createApp(App);
// 确保 t_use_  实例来创建router, 将路由插件安装到 app 中
app.use(router);
// app.use(setupStore)
app.mount('#app');
// createApp(App).mount('#app')
setupStore(app);
